// 全局vuex数据模块
const state = {
    // 左侧菜单展开收起
    collapse: false
}

const getters = {}

const mutations = {
    // collapse数据取反
    TOOGGLE_COLLAPSE(state) {
        state.collapse = !state.collapse
    },

    // 修改collapse
    SET_COLLAPSE(state, flag) {
        state.collapse = flag
    }
}

const actions = {

}

export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions,
}
